package com.aizuda.boot.modules.business.permission.service.impl;

import com.aizuda.boot.modules.business.permission.domain.entity.RolePermissionEntity;
import com.aizuda.boot.modules.business.permission.domain.request.GetPermissionPageVO;
import com.aizuda.boot.modules.business.permission.domain.response.PagePermissionVO;
import com.aizuda.boot.modules.business.permission.mapper.RolePermissionMapper;
import com.aizuda.boot.modules.business.permission.service.RolePermissionService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author sangyirong
 * @version 1.0
 * @date 2025/5/15
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermissionEntity> implements RolePermissionService {


    /**
     * 获取权限列表
     *
     * @param page
     * @param vo
     * @param list
     * @return
     */
    @Override
    public IPage<PagePermissionVO> pagePermission(IPage<PagePermissionVO> page, GetPermissionPageVO vo, List<String> list) {
        return baseMapper.pagePermission(page, vo, list);
    }
}